import type { ElForm } from 'element-plus'
import type { FormSchema, FormSetProps } from './types'

export interface FormExpose {
  setValues: (data: Recordable) => void
  setProps: (props: Recordable) => void
  delSchema: (field: string) => void
  addSchema: (formSchema: FormSchema, index?: number) => void
  setSchema: (schemaProps: FormSetProps[]) => void
  formModel: Recordable
  getElFormExpose: () => InstanceType<typeof ElForm>
  getComponentExpose: (field: string) => any
  getFormItemExpose: (field: string) => any
}
